package cn.codenest.springboot.mongo.entity;

import lombok.Data;
import org.bson.types.ObjectId;

/**
* @ClassName: Strategy
* @author: Zhihui.Liu
* @date: 2021/10/19 16:46
* @Description: 策略类，里面的type和Stgtype中的id对应
*/
@Data
public class StrategyEntity {

    public static final String COLLECTION_NAME="strategy";

    private String id;
    /*策略名称*/
    private String strategyName;
    /*挥发程度*/
    private Double volatility;
    /*策略类型，必须是ObjectId类型，否则无法联合查询*/
    private ObjectId type;
    /*创建时间*/
    private long createTime;
    /*修改时间*/
    private long modifyTime;

    private StgtypeEntity typeText;
}
